package model

import (
	"time"

	"github.com/jinzhu/gorm"
)

// Defect 模型
type Defect struct {
	gorm.Model
	UID        string
	Name       string
	Intro      string
	Status     uint `gorm:"default:1;comment:'状态[1未开始 2进行中 3已完成 4取消]'"`
	Priority   uint `gorm:"default:3;comment:'优先级[1非常高 2高 3一般 4低]'"`
	Progress   int
	ProjectID  string
	CreatedBy  string
	ExecuteBy  string
	StartAt    *time.Time
	DeadlineAt *time.Time
	CompleteAt *time.Time
}
